package com.bw.packcar.net

import com.bw.base.constants.ApiConst
import com.bw.common.net.BaseApiService
import com.bw.http.utils.Res
import com.bw.packcar.model.PackEntity
import retrofit2.http.Body
import retrofit2.http.DELETE
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Path
import retrofit2.http.Query

interface ApiService :BaseApiService{
    @GET(ApiConst.URL_GET_CAR_PACK_BY_AREA)
    suspend fun getCarPackByArea(
        @Path("areaId") areaId: Int,
    ): Res<List<PackEntity>>


    @POST(ApiConst.URL_POST_ADD_PACK)
    suspend fun addCarPack(@Body packEntity: PackEntity): Res<PackEntity>


    @DELETE(ApiConst.URL_DELETE_PACK)
    suspend fun deletePackById(
        @Path("id") id: Int,
    ): Res<String>



}